package gpstools.util;

/**
 * @author Marcin Skruch
 */
public class FileName {
    private final String name;

    public FileName(String name) {
        super();
        this.name = name;
    }

    public String extension() {
        if (name != null) {
            int index = name.lastIndexOf('.');
            return index != -1 ? name.toLowerCase().substring(index + 1) : "";
        } else
            return null;
    }
}
